package money;

public class Shuishoujisuan {
	static double Identifier(int income){
        double zuihouincome = 0;
        double shuishou1;
        if(income < 0 ) {
        	System.out.print("您的输入错误");
        if(income < 4000 && income>800 ) {
        	zuihouincome = (income-800)*0.2;
        	shuishou1 = income - zuihouincome;
        }
        if(income >4000) {
        	zuihouincome = income*0.8*0.2;
        	shuishou1 = income - zuihouincome;
        }
        }
        if(income < 800 ) {
             zuihouincome = income;
             shuishou1 = 0;
        }
		return zuihouincome;}
static double jisuan(int rating) {
	return rating;
	
}
public static double avg(double num){

    double x=800;
	if (num > x) {
        num = num - 800;
        num = num*0.2;//税收第一阶梯
    }
    double y=4000;
	if (num > y) {
        num = num * 0.8 *0.2;             //税收第二阶梯
    }
    if (num < x) {
    	num = 0;
    System.out.println("小于八百 无需交税");      //小于八百不交税
    }
    return num;
}
}

        	
